package com.ry.projectexp1.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ry
 * @date 2021/1/21 22:44
 */
@Configuration
@MapperScan("com.ry.projectexp1.modules.*.mapper")
public class MyBatisPlusConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        // 开启 PageHelper 的支持
        return new PaginationInterceptor();
    }
}
